<template>
  <div class="home">
    <div class="content">
      <!-- 头部 -->
      <div class="header">
        <!-- 地址 -->
        <div class="location">
          <van-icon name="location" />
          <span>北京理工大学珠海学院</span>
          <van-icon name="arrow" />
        </div>

        <!-- 搜素框 -->
        <div class="search">
          <input readonly placeholder="  请输入商家或商品名称" class="myttpp" />
          <div class="search_text">搜索</div>
        </div>
      </div>

      <!-- 主要内容 -->
      <div class="main">
        <div class="classify">
          <div class="big_classify">
            <!-- <ul v-for="user in users">
              <li v-for="(v, k, i) in user">{{ v }}</li>
            </ul> -->
          </div>
        </div>
      </div>
    </div>
    <Footer />
  </div>
</template>

<script>
import Footer from "../../components/Footer.vue";
// import axios from "axios";
export default {
  components: {
    Footer,
  },
  // data() {
  //   return {
  //     students: [],
  //   };
  // },
  // created() {
  //   var vm = this;
  //   this.axios({
  //     method: "get",
  //     url: "https://mock.presstime.cn/mock/62b192648bb7370029772353/meituan/homeData",
  //   }).then(function (resp) {
  //     vm.users = resp.data.users;
  //     console.log(resp);
  //   });
  // },
};
</script>


<style lang="less" scoped>
.home {
  display: flex;
  flex-flow: column;
  height: 100%;
  .content {
    flex: 1;
    overflow-y: auto;

    .header {
      background: #ffcc33;
      //   display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 5px 5px 10px 5px;
      .location {
        .span {
          margin: 0 1px;
        }
        font-size: 6px;
      }
      .search {
        position: relative;
        .myttpp {
          position: relative;
          border: none;
          width: 98%;
          border-radius: 20px;
          height: 12px;
          top: 5px;
          font-size: 6px;
        }
        .search_text {
          position: absolute;
          background-color: #ffcc33;
          right: 3px;
          top: 6.25px;
          width: 20px;
          height: 11px;
          border-radius: 6px;
          text-align: center;
          line-height: 11px;
          font-size: 7px;
        }
      }
    }
  }
}
</style>